﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using FluentFTP.ViewModel;

namespace FluentFTP.View
{
    /// <summary>
    /// Interaction logic for ConnectionView.xaml
    /// </summary>
    public partial class ConnectionView : Window
    {
        ConnectionViewModel viewModel;

        public ConnectionView(Action<Tuple<string, string, string>> connectAction)
        {
            InitializeComponent();

            viewModel = new ConnectionViewModel(connectAction);
            DataContext = viewModel;
        }

        private void ConnectButton_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
